import java.util.Scanner;

// day30 密码问题
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()) {
            String str = scanner.nextLine();
            int length = str.length();
            char[] ch = str.toCharArray();
            int index = 0;
            while (index < length) {
                // 65 - 90
                if(ch[index] >= 'F' && ch[index] <= 'Z') {
                    char k = (char)(ch[index] - 5);
                    ch[index] = k;
                } else if(ch[index] >= 'A' && ch[index] <= 'E') {
                    ch[index] = (char)(ch[index] + 21);
                }
                index++;
            }
            System.out.println(new String(ch));
        }
    }
}
